const Excel = require('exceljs');
let workbook = new Excel.Workbook();
var worksheet = workbook.addWorksheet("Discography"); // 添加工作表

// 插入一行数据到工作表中 
worksheet.addRow({ album: "Taylor Swift", year: 2006 });

workbook.xlsx.writeFile('taylor_swift.xlsx')
.then(function() {
    console.log("File saved!");
});